package array;

import java.util.Arrays;

public class P7_arrays_class {
    /*
    arrays 类包
     */
    public static void main(String[] args) {
        int[] a = {1, 231, 4324, 34, 5, 53, 55, 343};
//      打印数组toString  [1, 231, 4324, 34, 5, 53, 55, 343]
        System.out.println(Arrays.toString(a));
//        排序
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
//        [1, 231, 4324, 34, 5, 53, 55, 343]
//        [1, 5, 34, 53, 55, 231, 343, 4324]



    }
}
